import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:getpro/getpro.dart';
import 'package:getx_base/pages/login_page/login_page.dart';

import '../../main.dart';

class UserPage extends BasePageWidget<UserPageModel>{
  const UserPage({Key? key}) : super(key: key);

  @override
  Widget buildChild(UserPageModel model, BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text("user"),
      ),
    );
  }

  @override
  UserPageModel get getModel => UserPageModel();

  @override
  bool pageAuth() {
    return Get.find<AppModel>().hasAuth.value;
  }
  @override
  Widget get noAuthPage => LoginPage(redirect: UserPage());

}

class UserPageModel extends BasePageModel{
  @override
  void initModel() {
  }

  @override
  PageStatus setPageStatus() {
    return PageStatus.loading;
  }


}